package com.itjason.service;

import com.itjason.dto.NationUploadDataDTO;
import com.itjason.dto.Question;
import com.itjason.dto.QuestionDTO;
import com.itjason.exceptionhandler.ResponseException;
import com.itjason.po.GameOption;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itjason.po.OptionItem;
import com.itjason.vo.WxQuestion;

import java.util.List;

/**
* @author dengxiang
* @description 针对表【game_option】的数据库操作Service
* @createDate 2024-05-30 23:38:50
*/

public interface GameOptionService extends IService<GameOption> {

    List<WxQuestion> getQuestions();

    boolean answer(OptionItem questionDTO);

    List<OptionItem> queryOptionItem(Integer id);

    ResponseException uploadFile(NationUploadDataDTO nationUploadDataDTO);

    ResponseException addQuestion(Question question);

    ResponseException delete(Integer id);

    ResponseException updateQuestionInfo(Question question);
}
